from jinja2 import Environment, FileSystemLoader
from src.base import camel_case_filter
# 加载 Jinja2 模板引擎，并添加自定义过滤器
def load_templates(template_folder='assets/templates'):
    env = Environment(loader=FileSystemLoader(template_folder))
    env.filters['camel_case'] = camel_case_filter  # 添加 camel_case 过滤器
    return env